package com.cht.mailGenerator;

public class MailGenerator {

	
	/*
	 * 1	開發主管同意新增模組
	 * 2	開發主管拒絕新增模組
	 * 
	 * */
	
	public String subjectMail(int typeId) {
		
		String res="";
		
		switch (typeId) {
		case 1:
			res="主管同意新增模組";
			break;
		case 2:
			res="主管拒絕新增模組";
			break;
		case 3:
			res="主管同意繳交申請";
			break;
		case 4:
			res="主管拒絕繳交申請";
			break;
		case 5:
			res="主管同意變更申請";
			break;
		case 6:
			res="主管拒絕變更申請";
			break;
		case 11:
			res="主管同意模組相依申請";
			break;
		case 12:
			res="主管拒絕模組相依申請";
			break;
		}
		
		return res;
	}
	
	
	
	public String mailBodyMail(int typeId,String mgrName) {
		
		String res="";
		
		switch (typeId) {
		case 1:
			res="主管"+mgrName+" 同意您的新增模組申請";
			break;
		case 2:
			res="主管"+mgrName+" 拒絕您的新增模組申請";
			break;
		case 3:
			res="主管"+mgrName+" 同意您的繳交申請";
			break;
		case 4:
			res="主管"+mgrName+" 拒絕您的繳交申請";
			break;
		case 5:
			res="主管"+mgrName+" 同意您的變更申請";
			break;
		case 6:
			res="主管"+mgrName+" 拒絕您的變更申請";
			break;
		case 11:
			res="主管"+mgrName+" 同意您的模組相依申請";
			break;
		case 12:
			res="主管"+mgrName+" 拒絕您的模組相依申請";
			break;
		}
		
		return res;
	}
}
